<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<fieldset class="form-container " style="width:80%;margin-left:5%;"> 
    <form:form id="form_782213"    method="post" action="/contrat/update.do" modelAttribute="contrat" autocomplete="on">
        <legend class="form-title"><h2>Modification du contrat entre ${contrat.adherent.nomPrenom} et ${contrat.employe.nom}&nbsp;${contrat.employe.prenom}</h2></legend>
        <form:errors path="*" cssClass="errorblock" element="div"></form:errors>
        <form:hidden path="id"/>
        <form:hidden path="employe.id"/>
        <form:hidden path="adherent.id"/>
        <form:hidden path="dateEntree"/>
        <form:hidden path="employe.id"/>
        <p class="form-title">Etat du contrat   <form:select  cssClass="form-field" path="etatContrat" id="EtatPaieSelect"> 
                <form:options />
            </form:select>
        </p>
        <p class="form-title">
            Mod&egrave;le:&nbsp;
            <form:select  cssClass="form-field" path="modelPaie.id" id="modelPaieSelect">

                <c:forEach items="${listModelPaie}" var="model">
                    <form:option value="${model.id}">${model.nom}</form:option>
                </c:forEach>
            </form:select>
        </p>
        <p class="form-title">
            Taux horaire : <form:input class="form-field" type="text" path="salaireBase"/>

        </p>
        <div class="submit-container" style=" clear: left;">
            <form:button class="submit-button" type="submit" >Enregistrer</form:button>
           <a href="/contrat/index.do" class="submit-button">Annuler</a>
            </div>
        </fieldset>

</form:form>

